$('#btngroupsfast').click(function() {
	if (beginrandom != 0) {
		clearInterval(interval);
		interval = null;
		if (exsign != 1) {
			speed = 10;
			swal("随机间隔为0.01s");

		}
	} else {
		speed = 10;
		swal("随机间隔为0.01s");

	}
})

$('#btngroupsmiddle').click(function() {
	if (beginrandom != 0) {
		clearInterval(interval);
		interval = null;
		if (exsign != 1) {

			speed = 400;
			swal("随机间隔为0.4s");

		}
	} else {
		speed = 400;
		swal("随机间隔为0.2s");

	}
})

$('#btngroupsslow').click(function() {
	if (beginrandom != 0) {
		clearInterval(interval);
		interval = null;
		if (exsign != 1) {

			speed = 800;
			swal("随机间隔为1s");


		}
	} else {
		speed = 800;
		swal("随机间隔为0.8s");
	}
})

$(document).on('click', '.confirm', function() {
	if (beginrandom != 0 && exsign != 1) {
		randomtables();
	}
})
